<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<meta name="viewport" content="width=1000, initial-scale=1.0, maximum-scale=1.0">
	    <!-- Loading Bootstrap -->
	    <link href="__STATIC__/Admin/Flat/dist/css/vendor/bootstrap.min.css" rel="stylesheet">
	    <!-- Loading Flat UI -->
	    <link href="__STATIC__/Admin/Flat/dist/css/flat-ui.css" rel="stylesheet">
	    <link href="__STATIC__/Admin/Flat/docs/assets/css/demo.css" rel="stylesheet">
	    <link rel="shortcut icon" href="__STATIC__/Admin/Flat/img/favicon.ico"> 
	    <!-- HTML5 shim, for IE6-8 support of HTML5 elements. All other JS at the end of file. -->
	    <!--[if lt IE 9]>
	      <script src="dist/js/vendor/html5shiv.js"></script>
	      <script src="dist/js/vendor/respond.min.js"></script>
	    <![endif]-->
	</head>
	<body>
		<form action="" method="post">
		<table class="table table-hover">
			<tr class="active">
			  <th width="100">glid</th>
			  <foreach from="$g_spec_data" key="$k" value="$v">
			  		<th>{$k}</th>
				</foreach>
			  <th>库存</th>
			  <th>货号</th> 
			  <th width="210">操作</th>
			  <th><input type="submit" value="保存" class="btn btn-sm btn-primary"></th>
			</tr>
			 

			<tr>
				<td>编辑货品</td>
				<foreach from="$g_spec_data" key="$key" value="$value">

				<td>
					<div class="form-group"> 
						<select name="spec[]" class="form-control">
						<option value="0">请选择</option>
							<foreach from="$g_spec_data[$key]" key="$k" value="$v"> 
								<option value="{$v.gaid}" <if value="in_array($v['gaid'],$old_data['combline'])">selected</if>>{$v.gavalue}</option>
							</foreach>
						</select>
					</div>
				</td>
				</foreach>
				
				<td><input id="exampleInputEmail1" class="form-control" type="text" placeholder="请输入库存"  name="inventory" value="{$old_data.inventory}"></td>
				<td><input id="exampleInputEmail1" class="form-control" type="text" placeholder="货号"  name="number" value="{$old_data.number}"></td> 

				<td></td>
			</tr>

		</table>
		<input type="hidden" name="glid" value="{$hd.get.glid}">
		<input type="hidden" name="goods_gid" value="{$hd.get.gid}">
		</form>
	</body>
</html>
